package org.zk.dubbo_provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.zk.dubbo_provider.dao.LessionBroadcastMapper;
import org.zk.entity.Broadcast;
import org.zk.entity.LessionBroadcast;
import org.zk.service.LessionBroadcastService;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 课节表 服务实现类
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-30
 */
@Service(timeout = 10000)
public class LessionBroadcastServiceImpl implements LessionBroadcastService {

    @Resource
    private LessionBroadcastMapper lessionBroadcastMapper;

    @Override
    public int addLessionBroadcast(LessionBroadcast lessionBroadcast) {
        return lessionBroadcastMapper.addLessionBroadcast(lessionBroadcast);
    }

    @Override
    public List<LessionBroadcast> getBroadcastLessionById(int broadcastId) {
        return lessionBroadcastMapper.getBroadcastLessionById(broadcastId);
    }

    @Override
    public int delBroadcastLessionById(LessionBroadcast lessionBroadcast) {
        return lessionBroadcastMapper.delBroadcastLessionById(lessionBroadcast);
    }

    @Override
    public int updateLessionBroadcast(LessionBroadcast lessionBroadcast) {
        return lessionBroadcastMapper.updateLessionBroadcast(lessionBroadcast);
    }

    @Override
    public LessionBroadcast getBroadcastLvideoById(int lessionBroadcastId) {
        return lessionBroadcastMapper.getBroadcastLvideoById ( lessionBroadcastId );
    }
}
